package cn.redragon.soa.model.mapper;

import static org.mapstruct.factory.Mappers.getMapper;

import cn.redragon.soa.data.entity.StockHistoryEntity;
import cn.redragon.soa.model.dto.stock.StockHistoryDTO;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;

@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface StockMapper {

    StockMapper INSTANCE = getMapper(StockMapper.class);

    StockHistoryDTO from(StockHistoryEntity entity);

    StockHistoryEntity from(StockHistoryDTO dto);
}